package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * @author: @张巨波 @zhangjubo
 * @creat: on 2017/11/24.
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
@Entity
@Table(name = "T_WRT_CUSTOMER_VISIT", schema = "oa", catalog = "")
public class WReportCusVisitEntity extends BaseEntity implements Serializable {
    private String id;

    private String companyName;
    private String customerType;
    private String customerLevel;
    private String customerCredit;
    private String customerId;

    private String visitMode;

    private String entourage;

    private String visitContent;

    private String wId;

    private String intentionModel;

    private String intentionDevice;

    private String intentionBrand;

    private String buyType;

    private String buyDate;

    private String fundCondition;

    private String otherCondition;

    private String existingDevice;

    private String createUserId;

    private Date createTime;

    private String reportDate;

    private Date arrivalsTime;

    private Date leaveTime;

    private String leaveImg;

    private String arrivalsLongitude;

    private String arrivalsLatitude;

    private String arrivalsAddress;

    private String leaveLongitude;

    private String leaveLatitude;

    private String leaveAddress;

    private String tel;
    private String name;
    private String wechat;
    private String entourageId;
    private String companyId;
    private String regionId;
    private String bigRegionId;
    private String sysEntourage;
    private String sysEntourageId;
    private String entourageRegionId;
    private String serverCondition;
    private String trackType;
    private int intentionFlag;
    private Date intentionTime;
    private String otherVisitType;
    private String serialNo;
    private String accessoriesChargesCondition;
    private String hoursChargesCondition;

    private String serverCustomerType;
    private String debtCondition;
    private String lettersCondition;


    private String deviceInfo;
    private String deviceHour;
    private String machineNo;
    private String feeType;
    private String feeDesc;

    private String provinceName;
    private String cityName;
    private String countyName;

    private String entourageDistance;
    private String visitTime;
    private String arrivalsImg;

    /*
    服务台账
     */
    private String type;
    //服务记录
    private String repairOrderNumber;//保修单号
    private String fwWorkingCondition;//工况
    private String fwWorkingHoursAvg;//日均工作小时
    private String fwLatestWorkingHours;//最新工作小时
    private String principal;    //负责人
    private String fwState;//状态


    //索赔记录
    private String claimSubmissionDate; //索赔递交日
    private String claimType; //索赔类型
    private String claimAmount;  //索赔金额
    private String replyDate;  //批复日期
    private String approvalAmount;//批复金额
    private String arrivalDate;//到账日期
    private String arrivalAmount; //到账金额
    private String refusalAmount;//拒赔金额
    private String refusalReason; //拒赔原因
    private String oldCondition; //旧件情况
    private String returnDate;   //返厂日期
    private String returnWaybill; //返厂运单
    //销售记录
    private String numberDelivery;    //出库单号
    private String outboundAmount;  //出库金额
    private String paymentAmount;//回款金额
    private String amountOwed;  //欠款金额
    private String estimatedRepaymentDate;//预计还款日期
    private String actualRepaymentDate;//实际还款日期
    private String description;//说明
    private String accountCustomerType;

    private String attachName;
    private String attachUrl;
    private String chance;
    private String businessDate;
    private List<JSONObject> attaches;

    private String customerBackground;//客户背景
    private String revenueForecast;//收入预测
    private String equipmentUse;//设备用途

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public String getCustomerLevel() {
        return customerLevel;
    }

    public void setCustomerLevel(String customerLevel) {
        this.customerLevel = customerLevel;
    }

    public String getCustomerCredit() {
        return customerCredit;
    }

    public void setCustomerCredit(String customerCredit) {
        this.customerCredit = customerCredit;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getVisitMode() {
        return visitMode;
    }

    public void setVisitMode(String visitMode) {
        this.visitMode = visitMode;
    }

    public String getEntourage() {
        return entourage;
    }

    public void setEntourage(String entourage) {
        this.entourage = entourage;
    }

    public String getVisitContent() {
        return visitContent;
    }

    public void setVisitContent(String visitContent) {
        this.visitContent = visitContent;
    }

    public String getwId() {
        return wId;
    }

    public void setwId(String wId) {
        this.wId = wId;
    }

    public String getIntentionModel() {
        return intentionModel;
    }

    public void setIntentionModel(String intentionModel) {
        this.intentionModel = intentionModel;
    }

    public String getIntentionDevice() {
        return intentionDevice;
    }

    public void setIntentionDevice(String intentionDevice) {
        this.intentionDevice = intentionDevice;
    }

    public String getIntentionBrand() {
        return intentionBrand;
    }

    public void setIntentionBrand(String intentionBrand) {
        this.intentionBrand = intentionBrand;
    }

    public String getBuyType() {
        return buyType;
    }

    public void setBuyType(String buyType) {
        this.buyType = buyType;
    }

    public String getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate;
    }

    public String getFundCondition() {
        return fundCondition;
    }

    public void setFundCondition(String fundCondition) {
        this.fundCondition = fundCondition;
    }

    public String getOtherCondition() {
        return otherCondition;
    }

    public void setOtherCondition(String otherCondition) {
        this.otherCondition = otherCondition;
    }

    public String getExistingDevice() {
        return existingDevice;
    }

    public void setExistingDevice(String existingDevice) {
        this.existingDevice = existingDevice;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getReportDate() {
        return reportDate;
    }

    public void setReportDate(String reportDate) {
        this.reportDate = reportDate;
    }

    public Date getArrivalsTime() {
        return arrivalsTime;
    }

    public void setArrivalsTime(Date arrivalsTime) {
        this.arrivalsTime = arrivalsTime;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public String getLeaveImg() {
        return leaveImg;
    }

    public void setLeaveImg(String leaveImg) {
        this.leaveImg = leaveImg;
    }

    public String getArrivalsLongitude() {
        return arrivalsLongitude;
    }

    public void setArrivalsLongitude(String arrivalsLongitude) {
        this.arrivalsLongitude = arrivalsLongitude;
    }

    public String getArrivalsLatitude() {
        return arrivalsLatitude;
    }

    public void setArrivalsLatitude(String arrivalsLatitude) {
        this.arrivalsLatitude = arrivalsLatitude;
    }

    public String getArrivalsAddress() {
        return arrivalsAddress;
    }

    public void setArrivalsAddress(String arrivalsAddress) {
        this.arrivalsAddress = arrivalsAddress;
    }

    public String getLeaveLongitude() {
        return leaveLongitude;
    }

    public void setLeaveLongitude(String leaveLongitude) {
        this.leaveLongitude = leaveLongitude;
    }

    public String getLeaveLatitude() {
        return leaveLatitude;
    }

    public void setLeaveLatitude(String leaveLatitude) {
        this.leaveLatitude = leaveLatitude;
    }

    public String getLeaveAddress() {
        return leaveAddress;
    }

    public void setLeaveAddress(String leaveAddress) {
        this.leaveAddress = leaveAddress;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getEntourageId() {
        return entourageId;
    }

    public void setEntourageId(String entourageId) {
        this.entourageId = entourageId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getBigRegionId() {
        return bigRegionId;
    }

    public void setBigRegionId(String bigRegionId) {
        this.bigRegionId = bigRegionId;
    }

    public String getSysEntourage() {
        return sysEntourage;
    }

    public void setSysEntourage(String sysEntourage) {
        this.sysEntourage = sysEntourage;
    }

    public String getSysEntourageId() {
        return sysEntourageId;
    }

    public void setSysEntourageId(String sysEntourageId) {
        this.sysEntourageId = sysEntourageId;
    }

    public String getEntourageRegionId() {
        return entourageRegionId;
    }

    public void setEntourageRegionId(String entourageRegionId) {
        this.entourageRegionId = entourageRegionId;
    }

    public String getServerCondition() {
        return serverCondition;
    }

    public void setServerCondition(String serverCondition) {
        this.serverCondition = serverCondition;
    }

    public String getTrackType() {
        return trackType;
    }

    public void setTrackType(String trackType) {
        this.trackType = trackType;
    }

    public int getIntentionFlag() {
        return intentionFlag;
    }

    public void setIntentionFlag(int intentionFlag) {
        this.intentionFlag = intentionFlag;
    }

    public Date getIntentionTime() {
        return intentionTime;
    }

    public void setIntentionTime(Date intentionTime) {
        this.intentionTime = intentionTime;
    }

    public String getOtherVisitType() {
        return otherVisitType;
    }

    public void setOtherVisitType(String otherVisitType) {
        this.otherVisitType = otherVisitType;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getAccessoriesChargesCondition() {
        return accessoriesChargesCondition;
    }

    public void setAccessoriesChargesCondition(String accessoriesChargesCondition) {
        this.accessoriesChargesCondition = accessoriesChargesCondition;
    }

    public String getHoursChargesCondition() {
        return hoursChargesCondition;
    }

    public void setHoursChargesCondition(String hoursChargesCondition) {
        this.hoursChargesCondition = hoursChargesCondition;
    }

    public String getServerCustomerType() {
        return serverCustomerType;
    }

    public void setServerCustomerType(String serverCustomerType) {
        this.serverCustomerType = serverCustomerType;
    }

    public String getDebtCondition() {
        return debtCondition;
    }

    public void setDebtCondition(String debtCondition) {
        this.debtCondition = debtCondition;
    }

    public String getLettersCondition() {
        return lettersCondition;
    }

    public void setLettersCondition(String lettersCondition) {
        this.lettersCondition = lettersCondition;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getDeviceHour() {
        return deviceHour;
    }

    public void setDeviceHour(String deviceHour) {
        this.deviceHour = deviceHour;
    }

    public String getMachineNo() {
        return machineNo;
    }

    public void setMachineNo(String machineNo) {
        this.machineNo = machineNo;
    }

    public String getFeeType() {
        return feeType;
    }

    public void setFeeType(String feeType) {
        this.feeType = feeType;
    }

    public String getFeeDesc() {
        return feeDesc;
    }

    public void setFeeDesc(String feeDesc) {
        this.feeDesc = feeDesc;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public String getEntourageDistance() {
        return entourageDistance;
    }

    public void setEntourageDistance(String entourageDistance) {
        this.entourageDistance = entourageDistance;
    }

    public String getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(String visitTime) {
        this.visitTime = visitTime;
    }

    public String getArrivalsImg() {
        return arrivalsImg;
    }

    public void setArrivalsImg(String arrivalsImg) {
        this.arrivalsImg = arrivalsImg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRepairOrderNumber() {
        return repairOrderNumber;
    }

    public void setRepairOrderNumber(String repairOrderNumber) {
        this.repairOrderNumber = repairOrderNumber;
    }

    public String getFwWorkingCondition() {
        return fwWorkingCondition;
    }

    public void setFwWorkingCondition(String fwWorkingCondition) {
        this.fwWorkingCondition = fwWorkingCondition;
    }

    public String getFwWorkingHoursAvg() {
        return fwWorkingHoursAvg;
    }

    public void setFwWorkingHoursAvg(String fwWorkingHoursAvg) {
        this.fwWorkingHoursAvg = fwWorkingHoursAvg;
    }

    public String getFwLatestWorkingHours() {
        return fwLatestWorkingHours;
    }

    public void setFwLatestWorkingHours(String fwLatestWorkingHours) {
        this.fwLatestWorkingHours = fwLatestWorkingHours;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getFwState() {
        return fwState;
    }

    public void setFwState(String fwState) {
        this.fwState = fwState;
    }

    public String getClaimSubmissionDate() {
        return claimSubmissionDate;
    }

    public void setClaimSubmissionDate(String claimSubmissionDate) {
        this.claimSubmissionDate = claimSubmissionDate;
    }

    public String getClaimType() {
        return claimType;
    }

    public void setClaimType(String claimType) {
        this.claimType = claimType;
    }

    public String getClaimAmount() {
        return claimAmount;
    }

    public void setClaimAmount(String claimAmount) {
        this.claimAmount = claimAmount;
    }

    public String getReplyDate() {
        return replyDate;
    }

    public void setReplyDate(String replyDate) {
        this.replyDate = replyDate;
    }

    public String getApprovalAmount() {
        return approvalAmount;
    }

    public void setApprovalAmount(String approvalAmount) {
        this.approvalAmount = approvalAmount;
    }

    public String getArrivalDate() {
        return arrivalDate;
    }

    public void setArrivalDate(String arrivalDate) {
        this.arrivalDate = arrivalDate;
    }

    public String getArrivalAmount() {
        return arrivalAmount;
    }

    public void setArrivalAmount(String arrivalAmount) {
        this.arrivalAmount = arrivalAmount;
    }

    public String getRefusalAmount() {
        return refusalAmount;
    }

    public void setRefusalAmount(String refusalAmount) {
        this.refusalAmount = refusalAmount;
    }

    public String getRefusalReason() {
        return refusalReason;
    }

    public void setRefusalReason(String refusalReason) {
        this.refusalReason = refusalReason;
    }

    public String getOldCondition() {
        return oldCondition;
    }

    public void setOldCondition(String oldCondition) {
        this.oldCondition = oldCondition;
    }

    public String getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(String returnDate) {
        this.returnDate = returnDate;
    }

    public String getReturnWaybill() {
        return returnWaybill;
    }

    public void setReturnWaybill(String returnWaybill) {
        this.returnWaybill = returnWaybill;
    }

    public String getNumberDelivery() {
        return numberDelivery;
    }

    public void setNumberDelivery(String numberDelivery) {
        this.numberDelivery = numberDelivery;
    }

    public String getOutboundAmount() {
        return outboundAmount;
    }

    public void setOutboundAmount(String outboundAmount) {
        this.outboundAmount = outboundAmount;
    }

    public String getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(String paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public String getAmountOwed() {
        return amountOwed;
    }

    public void setAmountOwed(String amountOwed) {
        this.amountOwed = amountOwed;
    }

    public String getEstimatedRepaymentDate() {
        return estimatedRepaymentDate;
    }

    public void setEstimatedRepaymentDate(String estimatedRepaymentDate) {
        this.estimatedRepaymentDate = estimatedRepaymentDate;
    }

    public String getActualRepaymentDate() {
        return actualRepaymentDate;
    }

    public void setActualRepaymentDate(String actualRepaymentDate) {
        this.actualRepaymentDate = actualRepaymentDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAccountCustomerType() {
        return accountCustomerType;
    }

    public void setAccountCustomerType(String accountCustomerType) {
        this.accountCustomerType = accountCustomerType;
    }

    public String getAttachName() {
        return attachName;
    }

    public void setAttachName(String attachName) {
        this.attachName = attachName;
    }

    public String getAttachUrl() {
        return attachUrl;
    }

    public void setAttachUrl(String attachUrl) {
        this.attachUrl = attachUrl;
    }

    public String getChance() {
        return chance;
    }

    public void setChance(String chance) {
        this.chance = chance;
    }

    public String getBusinessDate() {
        return businessDate;
    }

    public void setBusinessDate(String businessDate) {
        this.businessDate = businessDate;
    }

    public List<JSONObject> getAttaches() {
        return attaches;
    }

    public void setAttaches(List<JSONObject> attaches) {
        this.attaches = attaches;
    }

    public String getCustomerBackground() {
        return customerBackground;
    }

    public void setCustomerBackground(String customerBackground) {
        this.customerBackground = customerBackground;
    }

    public String getRevenueForecast() {
        return revenueForecast;
    }

    public void setRevenueForecast(String revenueForecast) {
        this.revenueForecast = revenueForecast;
    }

    public String getEquipmentUse() {
        return equipmentUse;
    }

    public void setEquipmentUse(String equipmentUse) {
        this.equipmentUse = equipmentUse;
    }

    @Override
    public String getViewName() {
        return "V_WRT_CUSTOMER_VISIT";
    }

    @Override
    public String getTableName() {
        return "T_WRT_CUSTOMER_VISIT";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CUSTOMER_ID", "customerId");
        obj.put("VISIT_MODE", "visitMode");
        obj.put("ENTOURAGE", "entourage");
        obj.put("VISIT_CONTENT", "visitContent");
        obj.put("W_ID", "wId");
        obj.put("INTENTION_MODEL", "intentionModel");
        obj.put("INTENTION_DEVICE", "intentionDevice");
        obj.put("INTENTION_BRAND", "intentionBrand");
        obj.put("BUY_TYPE", "buyType");
        obj.put("BUY_DATE", "buyDate");
        obj.put("FUND_CONDITION", "fundCondition");

        obj.put("OTHER_CONDITION", "otherCondition");
        obj.put("EXISTING_DEVICE", "existingDevice");

        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("REPORT_DATE", "reportDate");
        /**
         * 2018/1/23 侯太雷  添加电访面访字段
         */
        obj.put("ARRIVALS_TIME", "arrivalsTime");
        obj.put("LEAVE_TIME", "leaveTime");
        obj.put("LEAVE_IMG", "leaveImg");
        obj.put("ARRIVALS_LONGITUDE", "arrivalsLongitude");
        obj.put("ARRIVALS_LATITUDE", "arrivalsLatitude");
        obj.put("ARRIVALS_ADDRESS", "arrivalsAddress");
        obj.put("LEAVE_LONGITUDE", "leaveLongitude");
        obj.put("LEAVE_LATITUDE", "leaveLatitude");
        obj.put("LEAVE_ADDRESS", "leaveAddress");
        obj.put("ENTOURAGE_ID", "entourageId");
        obj.put("COMPANY_ID", "companyId");
        obj.put("REGION_ID", "regionId");
        obj.put("BIG_REGION_ID", "bigRegionId");
        obj.put("SYS_ENTOURAGE", "sysEntourage");
        obj.put("SYS_ENTOURAGE_ID", "sysEntourageId");
        obj.put("ENTOURAGE_REGION_ID", "entourageRegionId");
        obj.put("COMPANY_NAME", "companyName");
        obj.put("CUSTOMER_TYPE", "customerType");
        obj.put("CUSTOMER_LEVEL", "customerLevel");
        obj.put("CUSTOMER_CREDIT", "customerCredit");
        obj.put("SERVER_CONDITION", "serverCondition");
        obj.put("TRACK_TYPE", "trackType");
        obj.put("INTENTION_FLAG", "intentionFlag");
        obj.put("INTENTION_TIME", "intentionTime");
        obj.put("OTHER_VISIT_TYPE", "otherVisitType");
        obj.put("SERIALNO", "serialNo");
        obj.put("ACCESSORIES_CHARGES_CONDITION", "accessoriesChargesCondition");
        obj.put("HOURS_CHARGES_CONDITION", "hoursChargesCondition");
        obj.put("SERVER_CUSTOMER_TYPE", "serverCustomerType");
        obj.put("DEBT_CONDITION", "debtCondition");
        obj.put("LETTERS_CONDITION", "lettersCondition");
        obj.put("DEVICEINFO", "deviceInfo");
        obj.put("DEVICEHOUR", "deviceHour");
        obj.put("MACHINENO", "machineNo");
        obj.put("FEETYPE", "feeType");
        obj.put("FEEDESC", "feeDesc");

        obj.put("TYPE", "type");
        obj.put("REPAIR_ORDER_NUMBER", "repairOrderNumber");
        obj.put("FW_WORKING_CONDITION", "fwWorkingCondition");
        obj.put("FW_WORKING_HOURS_AVG", "fwWorkingHoursAvg");
        obj.put("FW_LATEST_WORKING_HOURS", "fwLatestWorkingHours");
        obj.put("PRINCIPAL", "principal");
        obj.put("FW_STATE", "fwState");
        obj.put("CLAIM_SUBMISSION_DATE", "claimSubmissionDate");
        obj.put("CLAIM_TYPE", "claimType");
        obj.put("CLAIM_AMOUNT", "claimAmount");
        obj.put("REPLY_DATE", "replyDate");
        obj.put("APPROVAL_AMOUNT", "approvalAmount");
        obj.put("ARRIVAL_DATE", "arrivalDate");
        obj.put("ARRIVAL_AMOUNT", "arrivalAmount");
        obj.put("REFUSAL_AMOUNT", "refusalAmount");
        obj.put("REFUSAL_REASON", "refusalReason");
        obj.put("OLD_CONDITION", "oldCondition");
        obj.put("RETURN_DATE", "returnDate");
        obj.put("RETURN_WAYBILL", "returnWaybill");
        obj.put("NUMBER_DELIVERY", "numberDelivery");
        obj.put("OUTBOUND_AMOUNT", "outboundAmount");
        obj.put("PAYMENT_AMOUNT", "paymentAmount");
        obj.put("AMOUNT_OWED", "amountOwed");
        obj.put("ESTIMATED_REPAYMENT_DATE", "estimatedRepaymentDate");
        obj.put("ACTUAL_REPAYMENT_DATE", "actualRepaymentDate");
        obj.put("DESCRIPTION", "description");
        obj.put("ATTACHURL", "attachUrl");
        obj.put("ATTACHNAME", "attachName");
        obj.put("CHANCE", "chance");
        obj.put("BUSINESS_DATE", "businessDate");
        obj.put("PROVINCE_NAME", "provinceName");
        obj.put("CITY_NAME", "cityName");
        obj.put("COUNTY_NAME", "countyName");
        obj.put("VISIT_TIME", "visitTime");
        obj.put("ENTOURAGE_DISTANCE", "entourageDistance");
        obj.put("ARRIVALS_IMG", "arrivalsImg");
        obj.put("CUSTOMER_BACKGROUND", "customerBackground");
        obj.put("REVENUE_FORECAST", "revenueForecast");
        obj.put("EQUIPMENT_USE", "equipmentUse");
        return obj;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("CUSTOMER_ID", getCustomerId());
        obj.put("VISIT_MODE", getVisitMode());
        obj.put("ENTOURAGE", getEntourage());
        obj.put("VISIT_CONTENT", getVisitContent());
        obj.put("W_ID", getwId());
        obj.put("INTENTION_MODEL", getIntentionModel());
        obj.put("INTENTION_DEVICE", getIntentionDevice());
        obj.put("INTENTION_BRAND", getIntentionBrand());
        obj.put("BUY_TYPE", getBuyType());
        obj.put("BUY_DATE", getBuyDate());
        obj.put("FUND_CONDITION", getFundCondition());
        obj.put("OTHER_CONDITION", this.getOtherCondition());
        obj.put("EXISTING_DEVICE", getExistingDevice());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("REPORT_DATE", getReportDate());
        /**
         * 2018/1/23 侯太雷  添加电访面访字段
         */
        obj.put("ARRIVALS_TIME", getArrivalsTime());
        obj.put("LEAVE_TIME", getLeaveTime());
        obj.put("LEAVE_IMG", getLeaveImg());
        obj.put("ARRIVALS_LONGITUDE", getArrivalsLongitude());
        obj.put("ARRIVALS_LATITUDE", getArrivalsLatitude());
        obj.put("ARRIVALS_ADDRESS", getArrivalsAddress());
        obj.put("LEAVE_LONGITUDE", getLeaveLongitude());
        obj.put("LEAVE_LATITUDE", getLeaveLatitude());
        obj.put("LEAVE_ADDRESS", getLeaveAddress());
        obj.put("ENTOURAGE_ID", getEntourageId());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("REGION_ID", getRegionId());
        obj.put("BIG_REGION_ID", getBigRegionId());
        obj.put("SYS_ENTOURAGE", getSysEntourage());
        obj.put("SYS_ENTOURAGE_ID", getSysEntourageId());
        obj.put("ENTOURAGE_REGION_ID", getEntourageRegionId());
        obj.put("COMPANY_NAME", getCompanyName());
        obj.put("CUSTOMER_TYPE", getCustomerType());
        obj.put("CUSTOMER_LEVEL", getCustomerLevel());
        obj.put("CUSTOMER_CREDIT", getCustomerCredit());
        obj.put("SERVER_CONDITION", getServerCondition());
        obj.put("TRACK_TYPE", getTrackType());
        obj.put("INTENTION_FLAG", getIntentionFlag());
        obj.put("INTENTION_TIME", getIntentionTime());
        obj.put("OTHER_VISIT_TYPE", getOtherVisitType());
        obj.put("SERIALNO", getSerialNo());
        obj.put("ACCESSORIES_CHARGES_CONDITION", getAccessoriesChargesCondition());
        obj.put("HOURS_CHARGES_CONDITION", getHoursChargesCondition());
        obj.put("SERVER_CUSTOMER_TYPE", getServerCustomerType());
        obj.put("DEBT_CONDITION", getDebtCondition());
        obj.put("LETTERS_CONDITION", getLettersCondition());
        obj.put("DEVICEINFO", getDeviceInfo());
        obj.put("DEVICEHOUR", getDeviceHour());
        obj.put("MACHINENO", getMachineNo());
        obj.put("FEETYPE", getFeeType());
        obj.put("FEEDESC", getFeeDesc());

        obj.put("TYPE", getType());
        obj.put("REPAIR_ORDER_NUMBER", getRepairOrderNumber());
        obj.put("FW_WORKING_CONDITION", getFwWorkingCondition());
        obj.put("FW_WORKING_HOURS_AVG", getFwWorkingHoursAvg());
        obj.put("FW_LATEST_WORKING_HOURS", getFwLatestWorkingHours());
        obj.put("PRINCIPAL", getPrincipal());
        obj.put("FW_STATE", getFwState());
        obj.put("CLAIM_SUBMISSION_DATE", getClaimSubmissionDate());
        obj.put("CLAIM_TYPE", getClaimType());
        obj.put("CLAIM_AMOUNT", getClaimAmount());
        obj.put("REPLY_DATE", getReplyDate());
        obj.put("APPROVAL_AMOUNT", getApprovalAmount());
        obj.put("ARRIVAL_DATE", getArrivalDate());
        obj.put("ARRIVAL_AMOUNT", getArrivalAmount());
        obj.put("REFUSAL_AMOUNT", getRefusalAmount());
        obj.put("REFUSAL_REASON", getRefusalReason());
        obj.put("OLD_CONDITION", getOldCondition());
        obj.put("RETURN_DATE", getReturnDate());
        obj.put("RETURN_WAYBILL", getReturnWaybill());
        obj.put("NUMBER_DELIVERY", getNumberDelivery());
        obj.put("OUTBOUND_AMOUNT", getOutboundAmount());
        obj.put("PAYMENT_AMOUNT", getPaymentAmount());
        obj.put("AMOUNT_OWED", getAmountOwed());
        obj.put("ESTIMATED_REPAYMENT_DATE", getEstimatedRepaymentDate());
        obj.put("ACTUAL_REPAYMENT_DATE", getActualRepaymentDate());
        obj.put("DESCRIPTION", getDescription());
        obj.put("ATTACHURL", getAttachUrl());
        obj.put("ATTACHNAME", getAttachName());
        obj.put("CHANCE", getChance());
        obj.put("BUSINESS_DATE", getBusinessDate());
        obj.put("PROVINCE_NAME", getProvinceName());
        obj.put("CITY_NAME", getCityName());
        obj.put("COUNTY_NAME", getCountyName());
        obj.put("VISIT_TIME", getVisitTime());
        obj.put("ENTOURAGE_DISTANCE", getEntourageDistance());
        obj.put("ARRIVALS_IMG", getArrivalsImg());
        obj.put("CUSTOMER_BACKGROUND", getCustomerBackground());
        obj.put("REVENUE_FORECAST", getRevenueForecast());
        obj.put("EQUIPMENT_USE", getEquipmentUse());
        return obj;


    }

}
